package com.example.demo.entity;

import javax.persistence.*;

/**
 * Created by pengwan on 2017/7/31.
 */
@Entity
@Table(name = "t_product")
public class Product extends EntityId {
    @Column(name = "product_name")
    private String productName;
    @Column(name = "product_type")
    @Enumerated(EnumType.STRING)
    private EnumProductType productType;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public EnumProductType getProductType() {
        return productType;
    }

    public void setProductType(EnumProductType productType) {
        this.productType = productType;
    }
}
